.calendarContainer {
  display: flex;
  gap: 20px;
  min-width: 800px;
  padding: 16px;
}

.calendar {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  .header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;

    .controls {
      display: flex;
      align-items: center;
      gap: 16px;

      .yearSelect {
        width: 100px;
      }

      .monthControls {
        display: flex;
        align-items: center;
        gap: 8px;

        .monthSelect {
          width: 80px;
        }

        :global {
          .anticon {
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background-color 0.3s;

            &:hover {
              background-color: rgba(0, 0, 0, 0.05);
            }
          }
        }
      }

      .todayButton {
        padding: 4px 12px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
        transition: all 0.3s;

        &:hover {
          color: #1890ff;
          border-color: #1890ff;
        }
      }
    }
  }

  .weekDays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 0;
    background: #fafafa;

    .weekDay {
      color: #666;
      font-weight: 500;
      font-size: 14px;
    }
  }

  .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f0f0f0;
    padding: 1px;

    .day {
      height: 90px;
      width: 120px;
      background: #fff;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      border: none;

      &.otherMonth {
        color: #d9d9d9;
        background: #fafafa;
      }

      &.today {
        border: none;
        background: #fff;
        
        .dayNumber {
          color: #1890ff;
          font-weight: bold;
          background: #e6f4ff;
          border-radius: 4px;
          padding: 2px 6px;
          display: inline-block;
        }
      }

      .dateRow {
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        .dayNumber {
          font-size: 14px;
          font-weight: 500;
          padding: 2px 6px;
        }

        .lunarDate {
          font-size: 12px;
          color: #999;
        }
      }

      .festivalsContainer {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 2px;

        .marketingEvent {
          font-size: 12px;
          color: #ff4d4f;
          font-weight: 500;
          padding: 1px 4px;
          background: rgba(255, 77, 79, 0.1);
          border-radius: 2px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .festival {
          font-size: 12px;
          padding: 1px 4px;
          border-radius: 2px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          
          &[style*="color: #ff4d4f"] {
            background: rgba(255, 77, 79, 0.1);
          }
          
          &[style*="color: #52c41a"] {
            background: rgba(82, 196, 26, 0.1);
          }
          
          &[style*="color: #722ed1"] {
            background: rgba(114, 46, 209, 0.1);
          }
        }
      }
    }
  }
}

.datePopover {
  padding: 8px;
  min-width: 120px;

  .lunarDate {
    color: #666;
    margin-bottom: 4px;
    font-size: 12px;
  }

  .festival {
    margin-top: 4px;
    font-size: 12px;
  }
}

.marketingTemplates {
  width: 300px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
  }

  .templateList {
    display: flex;
    flex-direction: column;
    gap: 12px;

    .template {
      padding: 12px;
      background: #fafafa;
      border-radius: 8px;
      transition: all 0.3s;

      &:hover {
        background: #f5f5f5;
      }

      .templateHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;

        .templateDate {
          color: #666;
          font-size: 14px;
        }

        .daysLeft {
          color: #ff4d4f;
          font-size: 14px;
          font-weight: 500;
        }
      }

      .templateTitle {
        color: #333;
        font-size: 14px;
        font-weight: 500;
      }
    }
  }
}

.marketingCell {
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  font-size: 12px;
  color: #ff4d4f;
  font-weight: 600;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.festivalCell {
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  font-size: 11px;
  color: #1890ff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.lunarCell {
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  font-size: 10px;
  color: #999;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.today {
  // border: 2px solid #1677ff !important;
  // background: #e6f4ff !important;
  box-shadow: 0 0 6px #1677ff33;
  z-index: 1;
  
  .dayNumber {
    color: #1677ff;
    font-weight: bold;
  }
  
  &:hover {
    background: #bae0ff !important;
  }
}
